﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cronos.DateTimeExtensions
{
    public static class TimeSpanExtensions
    {
        public static TimeSpan Hours(this int hours)
        {
            return new TimeSpan(hours, 0, 0);
        }

        public static TimeSpan Minutes(this int minutes)
        {
            return new TimeSpan(0, minutes, 0);
        }

        public static TimeSpan Seconds(this int seconds)
        {
            return new TimeSpan(0, 0, seconds);
        }

        public static TimeSpan Minutes(this TimeSpan source, int minutes)
        {
            return source.Add(minutes.Minutes());
        }

        public static TimeSpan Seconds(this TimeSpan source, int seconds)
        {
            return source.Add(seconds.Seconds());
        }
    }
}
